﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DeviceHandle.cs" company="Matthias Friedrich">
//   Copyright © Matthias Friedrich 2009
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace DeviceManagement
{
	using System;

	public class DeviceHandle
	{
		// : SafeHandleZeroOrMinusOneIsInvalid
		private readonly DEV_BROADCAST_HANDLE handle;

		internal DeviceHandle(DEV_BROADCAST_HANDLE handle)
		{
			// : base(false)
			this.handle = handle;
		}

		public IntPtr Handle
		{
			get
			{
				return this.handle.dbch_handle;
			}
		}

		public IntPtr NotificationHandle
		{
			get
			{
				return this.handle.dbch_hdevnotify;
			}
		}
	}
}